package com.tjjingpan.broadcasttest
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.widget.Toast

class AnotherBroadcastReceiver :BroadcastReceiver() {
    override fun onReceive(context: Context?, intent: Intent?) {
        Toast.makeText(context,"received in AnotherBroadcastReceiver", Toast.LENGTH_SHORT).show()
        abortBroadcast()//截断广播
    }
}